Voucher entities
Name | Type | Is Mandatory |
---|---|---|
VoucherId | Int32 | |
VoucherIdentifier | String | |
ContactId | Int32 | |
LoyaltyCardId | Int32 | |
SourceId | Int16 | |
VoucherCode | String | |
VoucherTypeId | Int16 | |
VoucherStateId | Int16 | |
Amount | Decimal | |
CurrencyId | String | |
ValidityStartDate | DateTime | |
ValidityEndDate | DateTime | |
DeletionFlag | Boolean | |
VoucherCategoryId | Int16 | |
UseDate | DateTime | |
VoucherState | VoucherState | |
VoucherType | VoucherType | |
Contact | Contact | |
LoyaltyCard | LoyaltyCard | |
Currency | Currency | |
Source | Source | |
LoyaltyPoints | Collection of LoyaltyPoint | |
PurchaseHeaders | Collection of PurchaseHeader | |
VoucherCategory | VoucherCategory |
Select all Vouchers
https://customerapi.fts-crm360.com/data/Vouchers()
HttpMethod : GET
Json Result :
[
{
"VoucherId" : "87",
"VoucherIdentifier" : "0 XKk0 oDWDz6wDh",
"ContactId" : "30",
"LoyaltyCardId" : "50",
"SourceId" : "4",
"VoucherCode" : "jbJmgvZFPMnD0056Ai",
"VoucherTypeId" : "6",
"VoucherStateId" : "4",
"Amount" : "4445894.439",
"CurrencyId" : "qb61ZPwp auY1t 8",
"ValidityStartDate" : "1997-08-16T00:00:00",
"ValidityEndDate" : "2020-01-11T00:00:00",
"DeletionFlag" : "True",
"VoucherCategoryId" : "5",
"UseDate" : "2016-11-14T00:00:00"
},
{
"VoucherId" : "90",
"VoucherIdentifier" : "gNFnx",
"ContactId" : "62",
"LoyaltyCardId" : "33",
"SourceId" : "1",
"VoucherCode" : "Qa8m59gqQ3w p9dz 6",
"VoucherTypeId" : "4",
"VoucherStateId" : "5",
"Amount" : "1517446.369",
"CurrencyId" : "eY2H",
"ValidityStartDate" : "2017-07-05T00:00:00",
"ValidityEndDate" : "2006-05-30T00:00:00",
"DeletionFlag" : "True",
"VoucherCategoryId" : "1",
"UseDate" : "2004-11-06T00:00:00"
},
...
]
Select Voucher by Id
https://customerapi.fts-crm360.com/data/Vouchers(87)
HttpMethod : GET
Json Result :
{
"VoucherId" : "45",
"VoucherIdentifier" : "1IA2Omz7",
"ContactId" : "68",
"LoyaltyCardId" : "99",
"SourceId" : "5",
"VoucherCode" : "w LKgVNCR1Qlx1DC",
"VoucherTypeId" : "4",
"VoucherStateId" : "8",
"Amount" : "3263264.547",
"CurrencyId" : "BWf1FW kMhwHY8 2",
"ValidityStartDate" : "1997-09-19T00:00:00",
"ValidityEndDate" : "2006-06-12T00:00:00",
"DeletionFlag" : "False",
"VoucherCategoryId" : "7",
"UseDate" : "2009-09-15T00:00:00"
}
Create a Voucher
https://customerapi.fts-crm360.com/data/Vouchers()
HttpMethod : POST
Json Post :
{
"VoucherIdentifier" : "wWHgPiw 7gOPfwure",
"ContactId" : "6",
"LoyaltyCardId" : "46",
"SourceId" : "3",
"VoucherCode" : "cCPSKw a I",
"VoucherTypeId" : "1",
"VoucherStateId" : "5",
"Amount" : "5759871.558",
"CurrencyId" : "JseFqZ3eSQbSS2",
"ValidityStartDate" : "2001-08-22T00:00:00",
"ValidityEndDate" : "1997-03-29T00:00:00",
"DeletionFlag" : "False",
"VoucherCategoryId" : "7",
"UseDate" : "2011-08-20T00:00:00"
}
Informations :
- Non mandatory fields are optional for Json Post
Update a Voucher
https://customerapi.fts-crm360.com/data/Vouchers(87)
HttpMethod : PUT
Json Post :
{
"VoucherId" : "94",
"VoucherIdentifier" : "Ks8AOtqSax",
"ContactId" : "81",
"LoyaltyCardId" : "65",
"SourceId" : "5",
"VoucherCode" : "krpUAG",
"VoucherTypeId" : "6",
"VoucherStateId" : "7",
"Amount" : "3152167.379",
"CurrencyId" : "N9 gEbrNL2eno0xoYH",
"ValidityStartDate" : "2007-06-25T00:00:00",
"ValidityEndDate" : "2010-11-16T00:00:00",
"DeletionFlag" : "True",
"VoucherCategoryId" : "7",
"UseDate" : "2007-06-03T00:00:00"
}
Informations :
- Non mandatory fields are optional for Json Post
Patch a Voucher
https://customerapi.fts-crm360.com/data/Vouchers(87)
HttpMethod : PATCH
Json Post :
{
"DeletionFlag" : "True",
"VoucherTypeId" : "8",
"VoucherCategoryId" : "6",
"VoucherCode" : "mDmKE",
"SourceId" : "8",
"ContactId" : "78"
}
Informations :
- Non mandatory fields are optional for Json Post
Delete a Voucher
https://customerapi.fts-crm360.com/data/Vouchers(87)
HttpMethod : DELETE